package demo2;

public class Z extends X{
    // 实例成员变量
    Y y=new Y();

    public Z(){
        super();
        System.out.print("Z");
    }

    public static void main(String[] args) {
        new Z();
    }
}
